package com.kqb.sgai.service;

import com.kqb.sgai.model.document.Msg;

import java.util.List;

/**
 * @author 杉果树皮
 */
public interface MsgService {

    void saveMsg(List<Msg> msgs);

    /**
     * 根据会话id查询
     *
     * @param conversationId
     * @param lastN
     * @return
     */
    List<Msg> findByConversationId(String conversationId, int lastN);

    /**
     * 根据会话id删除
     *
     * @param conversationId
     */
    void deleteByConversationId(String conversationId);
}
